package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

//我的钱包余额记录
@Getter
@Setter
public class Record extends BaseDomain {
    public static final Long STATE_DEPOSIT = 1L;//提现
    public static final Long STATE_TOPUP = 2L;//充值
    public static final Long STATE_CONSUME = 3L;//消费支出
    private Long state;//转态
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date cashBackTime;//时间

    private Double money;//余额

    private User user;//那个用户经行余额操作

    private Bankcard bankcard;//哪张银行卡进行的操作
}